package String;

public class StringDemo {
    public static void main(String[] args) {
/*String  s1="123abc";
String s2="123abc";
String s3="123abc";
System.out.println(s1==s2);
System.out.println(s1==s3);
System.out.println(s2==s3);

s1+="!";
System.out.println(s1==s2);*


        String s1="123abc";
        String s2="123"+"abc";
        String s3="123";
        String S3=s3+"123";
        System.out.println(S3==s3);
        System.out.println(s1==s2);*/
        String s="hello";
        String s1="hello";
        System.out.println(s.equals(s1));
        System.out.println(s.equals(s1));
        System.out.println(s.equals(s1));
        System.out.println(s.equals(s1));
        System.out.println(s.equals(s1));
    }
}
